package com.ailink.design.atomic;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by Administrator on 2018/3/5
 */
public class MyAtomicTest {

    public static void main(String[] args) {
        AtomicInteger atomicInteger = new AtomicInteger(1);
        atomicInteger.incrementAndGet();
        atomicInteger.addAndGet(100);
    }

}
